package top.stacktrace.binfo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BkService {
    @Autowired
    private BookDao bookDao;

    @Cacheable(value="booklist")
    public List<Book> getBooks(){
        return bookDao.getBooks();
    }
}
